<template>
    <div class="student">
        <h2>学生名称：{{name}}</h2>
        <h2>学生年龄：{{age}}</h2>
        <input type="text" v-fbind:value="name">
        <hr>
    </div>
</template>

<script>
    export default {
        name: 'Student',
        data() {
            console.log(this);
            return {
                name: '张三',
                age: 19,
            }
        },
    }
</script>

<style>
    .student {
        background-color: gray;
    }
</style>